package com.my.hzb.pro.service;

import java.util.List;

import com.my.hzb.entiy.Product;

public interface ProductService {

	int add(Product product);
	int update(Product product);
	/**
	 * 
	 * @param id
	 * @param type 0减库存，1加库存
	 * @param stock
	 * @return
	 */
	int updateStock(Integer id,Integer type,Integer stock);
	int delete(Product product);
	Product getOne(Integer id);
	Product getHot();
	List<Product> find(Product product);
}
